<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/video.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>教师中心 - 教育资源平台</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
</head>

<body class="bg-gray-100">
    <!-- 导航栏 -->
    <nav class="bg-white shadow-lg">
        <div class="container mx-auto px-4">
            <div class="flex justify-between items-center h-16">
                <a href="#" class="text-2xl font-bold text-green-600">EduPlatform</a> <!-- 主色改为绿色 -->
                <div class="flex items-center space-x-4">
                    <a href="#" class="text-gray-600 hover:text-green-600 px-3 py-2">我的课程</a> <!-- 改为课程管理 -->
                    <a href="#" class="text-gray-600 hover:text-green-600 px-3 py-2">学生管理</a> <!-- 新增学生管理 -->
                    <a href="teacherIndex.jsp" class="text-gray-600 hover:text-blue-600 px-3 py-2">返回首页</a>
                    <div class="relative group">
                        <button class="flex items-center space-x-2 focus:outline-none">
                            <img src="https://randomuser.me/api/portraits/men/75.jpg"
                                 class="w-10 h-10 rounded-full border-2 border-green-200"> <!-- 边框色调整 -->
                            <span class="text-gray-700">张老师</span>
                            <i class="fas fa-chevron-down text-sm"></i>
                        </button>
                        <div class="absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-2 hidden group-hover:block">
                            <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-green-50"><i class="fas fa-user mr-2"></i>教师档案</a>
                            <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-green-50"><i class="fas fa-chalkboard mr-2"></i>教学设置</a> <!-- 改为教学相关 -->
                            <hr class="my-2">
                            <a href="#" class="block px-4 py-2 text-red-600 hover:bg-red-50"><i class="fas fa-sign-out-alt mr-2"></i>退出登录</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <!-- 页面主体 -->
    <div class="container mx-auto px-4 py-8">
        <!-- 教师信息卡片 -->
        <div class="bg-white rounded-xl shadow-lg overflow-hidden">
            <div class="bg-green-600 h-32 relative"> <!-- 背景色改为绿色 -->
                <!-- 头像部分保持不变 -->
            </div>
            <div class="pt-16 px-6 pb-6">
                <div class="flex justify-between items-start">
                    <div>
                        <h2 class="text-2xl font-bold text-gray-800">张老师</h2>
                        <p class="text-gray-600"><i class="fas fa-school mr-2"></i>清华大学 计算机系</p> <!-- 添加院系信息 -->
                    </div>
                    <button class="bg-green-100 text-green-600 px-4 py-2 rounded-lg hover:bg-green-200"> <!-- 颜色调整 -->
                        <i class="fas fa-chalkboard-teacher mr-2"></i>教学档案
                    </button>
                </div>

                <!-- 教学数据统计 -->
                <div class="grid grid-cols-2 md:grid-cols-4 gap-4 mt-6">
                    <div class="bg-gray-50 p-4 rounded-lg">
                        <p class="text-gray-500">开设课程</p>
                        <p class="text-2xl font-bold text-gray-800">8<span class="text-sm ml-1">门</span></p>
                    </div>
                    <div class="bg-gray-50 p-4 rounded-lg">
                        <p class="text-gray-500">学生总数</p>
                        <p class="text-2xl font-bold text-gray-800">326<span class="text-sm ml-1">人</span></p>
                    </div>
                    <div class="bg-gray-50 p-4 rounded-lg">
                        <p class="text-gray-500">课程评分</p>
                        <div class="flex items-baseline">
                            <p class="text-2xl font-bold text-gray-800">4.8</p>
                            <div class="ml-2 text-yellow-400">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star-half-alt"></i>
                            </div>
                        </div>
                    </div>
                    <div class="bg-gray-50 p-4 rounded-lg">
                        <p class="text-gray-500">认证状态</p>
                        <div class="flex items-center mt-1">
                            <span class="bg-green-100 text-green-600 px-2 py-1 rounded text-sm">高级教师</span>
                            <span class="text-gray-500 text-sm ml-2">2025-01-01</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 课程管理 -->
        <div class="mt-8">
            <div class="flex justify-between items-center mb-4">
                <h3 class="text-xl font-bold text-gray-800">我的课程</h3>
                <button class="bg-green-600 text-white px-4 py-2 rounded-lg hover:bg-green-700">
                    <i class="fas fa-plus mr-2"></i>新建课程
                </button>
            </div>
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition-shadow">
                    <img src="https://picsum.photos/400/200" alt="课程封面" class="w-full h-48 object-cover">
                    <div class="p-4">
                        <div class="flex justify-between items-start">
                            <h4 class="text-lg font-bold text-gray-800">人工智能导论</h4>
                            <span class="bg-blue-100 text-blue-600 px-2 py-1 rounded text-sm">进行中</span>
                        </div>
                        <div class="mt-2 flex items-center text-sm">
                            <span class="text-gray-600">选课人数：</span>
                            <span class="font-bold ml-1">86人</span>
                        </div>
                        <div class="mt-4">
                            <div class="flex justify-between text-sm text-gray-500">
                                <span>最近活跃：3天前</span>
                                <span>作业提交率 92%</span>
                            </div>
                            <div class="w-full bg-gray-200 rounded-full h-2 mt-2">
                                <div class="bg-green-600 h-2 rounded-full w-9/12"></div>
                            </div>
                        </div>
                        <div class="mt-4 grid grid-cols-2 gap-2">
                            <button class="bg-green-100 text-green-600 px-4 py-2 rounded hover:bg-green-200">
                                <i class="fas fa-users mr-2"></i>学生名单
                            </button>
                            <button class="bg-green-100 text-green-600 px-4 py-2 rounded hover:bg-green-200">
                                <i class="fas fa-chart-bar mr-2"></i>成绩统计
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 页脚（保持相同结构，内容微调） -->
    <footer class="bg-gray-800 text-white mt-12">
        <!-- ...同学生端，将"学习资源"改为"教学资源"... -->
    </footer>
    </body>
</html>